package com.ujoin.action.broadcast;

import org.springframework.beans.factory.annotation.Autowired;

import com.ujoin.service.BroadcastService;
import com.ujoin.util.ActionEnhanced;

public class DeleteBroadcastAction extends ActionEnhanced {

	private int activityId;

	public int getActivityId() {
		return activityId;
	}

	public void setActivityId(int activityId) {
		this.activityId = activityId;
	}
	
	@Autowired
	private BroadcastService broadcastService;
	
	@Override
	public String execute() {
		setJson(broadcastService.deleteBroadcast(activityId));
		return SUCCESS;
	}
}
